package cn.nebula.core.base.action;

import cn.nebula.core.base.model.ValueObject;
import cn.nebula.core.base.service.BaseService;

import com.opensymphony.xwork2.ActionSupport;


public class BaseAction extends ActionSupport {

	private static final long serialVersionUID = 8052021357658292632L;
	
	private ValueObject valObj=null;

	private BaseService baseService;
	
	
	public String save(){
		System.out.print("11111111111111111");
		try {
			baseService.doView("tom");
		} catch (Exception e) {
			e.printStackTrace();
			return INPUT;
		}
		return SUCCESS;
	}
	
	public ValueObject getValObj() {
		return valObj;
	}

	public void setValObj(ValueObject valObj) {
		this.valObj = valObj;
	}

	public BaseService getBaseService() {
		return baseService;
	}

	public void setBaseService(BaseService baseService) {
		this.baseService = baseService;
	}
}
